﻿namespace 更多的数据结构;

public class StudentClass
{
    // get 取值
    // set 存储
    public string name { get; } = "";
    public string id;
    public StudentType type;
    public string className;
    public int[] scores;

    public StudentClass(string _class)
    {
        //name = "";
        id = "";
        type = StudentType.大学生;
        className = _class;
        scores = new int[3];
    }

    public void Print()
    {
        Console.WriteLine(
            $"姓名 : {name} , 学号 : {id} , 班级 : {className} , 语数英 : {scores[0]} {scores[1]} {scores[2]} , 类型 : {type}");
    }
}